<script>
lang.role_name = '角色名称'; 
</script>

<!--编辑角色-->
<div class="dialog_content">
    <form id="info_form" action="{:u(MODULE_NAME & '/' & ACTION_NAME)}" method="post">
    <table width="100%" class="table_form">
        <tr>
            <th width="80">{:L('role_name')} :</th>
            <td><input type="text" name="name" id="name" class="input-text" value="{$rs('name')}"></td>
        </tr>
        <tr>
            <th>{:L('role_desc')} :</th>
            <td><textarea name="remark" id="remark" cols="40" rows="3">{$rs('remark')}</textarea></td>
        </tr>
		{if rs('id')>1}
        <tr>
            <th>{:L('enabled')} :</th>
            <td>
                <input type="radio" name="status" class="radio_style" value="1" {if rs('status')=1} checked="checked"{/if}> &nbsp;{:L('yes')}&nbsp;&nbsp;&nbsp;
                <input type="radio" name="status" class="radio_style" value="0" {if rs('status')=0} checked="checked"{/if}> &nbsp;{:L('no')}
            </td>
        </tr>
        {/if}
    </table>
    <input type="hidden" name="id" id="id" value="{$rs('id')}" />
    </form>
</div>
<script>
$(function(){
    $("#name").formValidator({ onshow:lang.please_input+lang.role_name, onfocus:lang.please_input+lang.role_name, oncorrect:lang.input_right}).inputValidator({ min:1, onerror:lang.please_input+lang.role_name}).defaultPassed();
})
</script>